<template>
  <div class="hot">
    <div class="hot-top">
      <div class="hot-left">
        <img src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" alt="hot">
        本周热门榜单
      </div>
      <div class="hot-right">
        全部榜单<span class="iconfont">&#xe62d;</span>
      </div>
    </div>
    <ul class="hot-list">
      <li class="hot-item" v-for="item in hotImgs" :key="item.id">
        <img :src="item.imgUrl" />
        <p class="hot-title">{{ item.title }}</p>
        <p><span>￥{{ item.price }}</span>起</p>
      </li>
    </ul>
  </div>
</template>
<script>
  export default {
    props:['hotImgs']
  }
</script>
<style scoped lang="stylus">
  @import "~css/common.styl"
  .hot{
    width: 100%;
    margin-top: .2rem;
    background-color: #fff;
  }
  .hot-top{
    padding: .2rem;
  }
  .hot-left{
    font-size: .28rem;
    color:#212121;
    float: left;
  }
  .hot-left img{
    width: .28rem;
  }
  .hot-right{
    float: right;
    font-size: .24rem;
    color:#616161;
  }
  .hot-list{
    width: 100%;
    margin-top: .1rem;
    padding: .2rem;
    overflow-x: scroll;
    overflow-y:hidden;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .hot-item{
    width: 2rem;
    height: 2rem;
    text-align: center;
    display: inline-block;
    margin-right: .15rem;
  }
  .hot-item img{
    width: 100%;
    height: 100%;
  }
  .hot-item p{
    font-size: .28rem;
    margin: .1rem;
  }
  .hot-title{
    textOverflow();
  }
  .hot-item span{
    color:#ff8300;
  }
</style>
